Try to match an off toggle here with the matching on toggle if it
authorMatthias Clasen <mclasen@redhat.com>
Tue, 11 Oct 2005 14:39:17 +0000 (14:39 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 11 Oct 2005 14:39:17 +0000 (14:39 +0000)
commita07a5ecba7c1a6cc3c726d0529f30f75a32989ed
tree4420219545054692aceef5b7b97f68071620611c
parent8ad0abb867dd326d3436f484588eaf70e0634435
Try to match an off toggle here with the matching on toggle if it

2005-10-11  Matthias Clasen  <mclasen@redhat.com>

* gtk/gtktextbtree.c (_gtk_text_btree_delete): Try to match an off
toggle here with the matching on toggle if it immediately follows.
This is a common case, and handling it here prevents quadratic blowup
in cleanup_line() below.  (#317125)

* gtk/gtktextsegment.h:
* gtk/gtktextsegment.c (_gtk_char_segment_new_from_two_strings): Pass
the character counts into this function instead of computing them
again.
ChangeLog
ChangeLog.pre-2-10
gtk/gtktextbtree.c
gtk/gtktextsegment.c
gtk/gtktextsegment.h